package com.pingbu.tijian.hospital.backapi.api;

import com.pingbu.common.bean.ResultBean;
import com.pingbu.tijian.hospital.backapi.config.GlobalConst;
import com.pingbu.tijian.hospital.backapi.service.StudentZuoyeStatistService;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@CrossOrigin
@RestController
@RequestMapping("/permission")
public class PermissionController {

    private static Logger logger = LoggerFactory.getLogger(PermissionController.class);

    /**
     * 获取系统中所有的权限
     * @return
     */
    @PostMapping(value = "/list_all_permission")
    public ResultBean<List<String>> list_all_permission(  ) {
        return ResultBean.create(0,"success", GlobalConst.Permissions );
    }


}
